// 排序
export function compare(prop) {
  return function(obj1, obj2) {
    const value1 = obj1[prop];
    const value2 = obj2[prop];
    return value1 - value2;
  };
}
